﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Kugar.UI.Web.AdminLTE.Models
{
    /// <summary>
    /// 上传的文件信息
    /// </summary>
    public class UploadFileInfo
    {
        public UploadFileInfo(string title, string fileUrl, string mime="", bool deleteable=true, bool viewable=true, int fileSize=0)
        {
            Mime = mime;
            Title = title;
            FileUrl = fileUrl;
            Deleteable = deleteable;
            Viewable = viewable;
            //FileSize = fileSize;
        }

        /// <summary>
        /// 文件的Mime
        /// </summary>
        public string Mime { set; get; }

        /// <summary>
        /// 文件名/标题
        /// </summary>
        public string Title { set; get; }

        /// <summary>
        /// 文件链接地址 
        /// </summary>
        public string FileUrl { set; get; }

        /// <summary>
        /// 是否可删除
        /// </summary>
        public bool Deleteable { set; get; }

        /// <summary>
        /// 是否可查看
        /// </summary>
        public bool Viewable { set; get; }

        /// <summary>
        /// 文件大小(KB)
        /// </summary>
        //public int FileSize { set; get; }
    }

}
